package com.his.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the HIS_DRUG database table.
 * 
 */
@Entity
@Table(name="HIS_DRUG")
@NamedQuery(name="HisDrug.findAll", query="SELECT h FROM HisDrug h")
public class HisDrug implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="CP_NO")
	private long cpNo;

	@Column(name="CP_APPROVAL")
	private String cpApproval;

	@Column(name="CP_COMPOSITION")
	private String cpComposition;

	@Column(name="CP_FUNCTION")
	private String cpFunction;

	@Column(name="CP_NAME")
	private String cpName;

	@Column(name="CP_NORMS")
	private String cpNorms;

	@Column(name="CP_PRICE")
	private BigDecimal cpPrice;

	@Temporal(TemporalType.DATE)
	@Column(name="CP_TIME")
	private Date cpTime;

	@Column(name="CP_TYPE")
	private String cpType;

	@Column(name="CP_UNIT")
	private String cpUnit;

	@Column(name="CP_USAGE")
	private String cpUsage;

	@Temporal(TemporalType.DATE)
	@Column(name="CP_VALIDITY")
	private Date cpValidity;

	@Column(name="KC_NO")
	private BigDecimal kcNo;

	public HisDrug() {
	}

	public long getCpNo() {
		return this.cpNo;
	}

	public void setCpNo(long cpNo) {
		this.cpNo = cpNo;
	}

	public String getCpApproval() {
		return this.cpApproval;
	}

	public void setCpApproval(String cpApproval) {
		this.cpApproval = cpApproval;
	}

	public String getCpComposition() {
		return this.cpComposition;
	}

	public void setCpComposition(String cpComposition) {
		this.cpComposition = cpComposition;
	}

	public String getCpFunction() {
		return this.cpFunction;
	}

	public void setCpFunction(String cpFunction) {
		this.cpFunction = cpFunction;
	}

	public String getCpName() {
		return this.cpName;
	}

	public void setCpName(String cpName) {
		this.cpName = cpName;
	}

	public String getCpNorms() {
		return this.cpNorms;
	}

	public void setCpNorms(String cpNorms) {
		this.cpNorms = cpNorms;
	}

	public BigDecimal getCpPrice() {
		return this.cpPrice;
	}

	public void setCpPrice(BigDecimal cpPrice) {
		this.cpPrice = cpPrice;
	}

	public Date getCpTime() {
		return this.cpTime;
	}

	public void setCpTime(Date cpTime) {
		this.cpTime = cpTime;
	}

	public String getCpType() {
		return this.cpType;
	}

	public void setCpType(String cpType) {
		this.cpType = cpType;
	}

	public String getCpUnit() {
		return this.cpUnit;
	}

	public void setCpUnit(String cpUnit) {
		this.cpUnit = cpUnit;
	}

	public String getCpUsage() {
		return this.cpUsage;
	}

	public void setCpUsage(String cpUsage) {
		this.cpUsage = cpUsage;
	}

	public Date getCpValidity() {
		return this.cpValidity;
	}

	public void setCpValidity(Date cpValidity) {
		this.cpValidity = cpValidity;
	}

	public BigDecimal getKcNo() {
		return this.kcNo;
	}

	public void setKcNo(BigDecimal kcNo) {
		this.kcNo = kcNo;
	}

}